package com.qyhl.module_practice.score.mine.shopping;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeScoreMyShoppingBean;

import java.util.List;

public class PracticeScoreMyShoppingPresenter implements PracticeScoreMyShoppingContract.PracticeScoreMyShoppingPresenter {
    private PracticeScoreMyShoppingContract.PracticeScoreMyShoppingView mView;
    private PracticeScoreMyShoppingModel mModel;

    PracticeScoreMyShoppingPresenter(PracticeScoreMyShoppingContract.PracticeScoreMyShoppingView mView) {
        this.mView = mView;
        this.mModel = new PracticeScoreMyShoppingModel(this);
    }

    @Override
    public void getList(String volId, String page) {
        mModel.getList(volId, page);
    }

    @Override
    public void setList(List<PracticeScoreMyShoppingBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
